Displays a 1-dimensional or 2-dimensional array in a ListView .
Options to show only 4000 rows, transpose view, choose alternate separator characters and replacement characters
#include <Array.au3>
_ArrayDisplay ( $ar_2DArray [, $sTitle [, $i_ShowOver4000 [, $i_Transpose [, $GUIDataSeparatorChar [, $GUIDataReplace] ] ] ] ] )
Parameters
$ar_2DArray | Name of Array to display; 1 or 2 dimensional |
$sTitle | optional - The new title for Array Display ListView. |
$i_ShowOver4000 | optional 0 = Limit number of rows displayed to 4000 for speed - 1 = (default) Display all rows [may slow down over 4000] |
$i_Transpose | optional 0 = (default) don't transpose view - 1 = transpose view |
$GUIDataSeparatorChar | optional (default="|") change option of character for ListView display [see Opt("GUIDataSeparatorChar", $GUIDataSeparatorChar)] |
$GUIDataReplace | optional (default="~") change character to use in items of display if the item contains the separator character |
Return Value
Success: | Returns 1. |
Failure: | Returns 0. |
@Error: | 0 = No error. |
1 = $avArray isn't an array. |
Remarks
None.
Related
_ArrayToClip
Example
; Ex. #1:
#include <Array.au3>
$asControls = StringSplit(WinGetClassList("", ""), @LF)
_ArrayDisplay($asControls, "Class List of Active Window")
; Ex. #2:
#include <Array.au3>
Dim $arGrid[2][4] = [["Paul", "Jim", "Richard", "Louis"], [485.44, 160.68, 275.16, 320.00]]
_ArrayDisplay($arGrid, "_ArrayDisplay() 2D Test", 1, 1) ; [2D, transposed]
; Ex. #3:
#include <Array.au3>
Dim $avArray[8]
$avArray[0] = 7
$avArray[1] = "Brian"
$avArray[2] = "Jon"
$avArray[3] = "Larry"
$avArray[4] = "Christa"
$avArray[5] = "Rick"
$avArray[6] = "Jack"
$avArray[7] = "Gregory"
_ArrayDisplay($avArray, "_ArrayDisplay() Test")